<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<form method="post" action="uploadEdit.sudo">
	<textarea id="editor" name="editor">请输入文本的内容</textarea>
	<script type="text/javascript" src="/bistuAlumnus/ckeditor/ckeditor.js"></script>
	<script type="text/javascript">
		CKEDITOR
				.replace('editor',
						{
							language : 'zh-cn',
							uiColor : '#9AB8F3',
							filebrowserUploadUrl : 'uploadEdit.sudo?',
							filebrowserImageUploadUrl : 'uploadImageEdit.sudo?id=6',
							filebrowserWindowWidth : '640',
							filebrowserWindowHeight : '480',
							filebrowserImageWindowWidth : '640',
							filebrowserImageWindowHeight : '480',
							toolbar : [
									{
										name : 'document',
										items : [ 'Source', '-', 'DocProps',
												'Preview', 'Print', '-',
												'Templates' ]
									},
									{
										name : 'clipboard',
										items : [ 'Cut', 'Copy', 'Paste',
												'PasteText', 'PasteFromWord',
												'-', 'Undo', 'Redo' ]
									},
									{
										name : 'editing',
										items : [ 'Find', 'Replace', '-',
												'SelectAll', ]
									},
									'/',
									{
										name : 'basicstyles',
										items : [ 'Bold', 'Italic',
												'Underline', 'Strike',
												'Subscript', 'Superscript',
												'-', 'RemoveFormat' ]
									},
									{
										name : 'paragraph',
										items : [ 'NumberedList',
												'BulletedList', '-', 'Outdent',
												'Indent', '-', 'Blockquote',
												'CreateDiv', '-',
												'JustifyLeft', 'JustifyCenter',
												'JustifyRight', 'JustifyBlock',
												'-', 'BidiLtr', 'BidiRtl' ]
									},
									{
										name : 'links',
										items : [ 'Link', 'Unlink', 'Anchor' ]
									},
									{
										name : 'insert',
										items : [ 'Image', 'Table',
												'HorizontalRule', 'Smiley',
												'SpecialChar', 'PageBreak' ]
									},
									'/',
									{
										name : 'styles',
										items : [ 'Styles', 'Format', 'Font',
												'FontSize' ]
									}, {
										name : 'colors',
										items : [ 'TextColor', 'BGColor' ]
									}, {
										name : 'tools',
										items : [ 'Maximize', 'ShowBlocks' ]
									} ]
						});

		var obj = { text : 'My Object' };

		function alertText()
		{
		    alert( this.text );
		}

		var newFunc = CKEDITOR.tools.bind( alertText, obj );
		
	</script>
	<input type="submit" />
</form>